package com.zyg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyg.pojo.Grade;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GradeMapper extends BaseMapper<Grade> {
    @Select(" select  *  from grade")
    List<Grade> getGradeList();



    @Select("SELECT * FROM grade WHERE grade_id = #{gradeId}")
    Grade getGradeById(@Param("gradeId") Integer gradeId);
}
